<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: UIWrapContent Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_wrap_content.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_u_i_wrap_content-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIWrapContent Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This script makes it possible for a scroll view to wrap its content, creating endless scroll views. Usage: simply attach this script underneath your scroll view where you would normally place a <a class="el" href="class_u_i_grid.html" title="All children added to the game object with this script will be repositioned to be on a grid of specif...">UIGrid</a>:  
 <a href="class_u_i_wrap_content.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for UIWrapContent:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_u_i_wrap_content.png" usemap="#UIWrapContent_map" alt=""/>
  <map id="UIWrapContent_map" name="UIWrapContent_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2ea8823ff58c11f6829cbcfde7009427"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ea8823ff58c11f6829cbcfde7009427"></a>
delegate void&#160;</td><td class="memItemRight" valign="bottom"><b>OnInitializeItem</b> (GameObject go, int wrapIndex, int realIndex)</td></tr>
<tr class="separator:a2ea8823ff58c11f6829cbcfde7009427"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb45af70f5b7679b61a966a18ea12d7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#acb45af70f5b7679b61a966a18ea12d7e">SortBasedOnScrollMovement</a> ()</td></tr>
<tr class="memdesc:acb45af70f5b7679b61a966a18ea12d7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Immediately reposition all children.  <a href="#acb45af70f5b7679b61a966a18ea12d7e">More...</a><br /></td></tr>
<tr class="separator:acb45af70f5b7679b61a966a18ea12d7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e58c60ad2dd89ecb515125449f91453"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a1e58c60ad2dd89ecb515125449f91453">SortAlphabetically</a> ()</td></tr>
<tr class="memdesc:a1e58c60ad2dd89ecb515125449f91453"><td class="mdescLeft">&#160;</td><td class="mdescRight">Immediately reposition all children, sorting them alphabetically.  <a href="#a1e58c60ad2dd89ecb515125449f91453">More...</a><br /></td></tr>
<tr class="separator:a1e58c60ad2dd89ecb515125449f91453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e6d5e1e3d580336e9414ae2635bb935"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a0e6d5e1e3d580336e9414ae2635bb935">WrapContent</a> ()</td></tr>
<tr class="memdesc:a0e6d5e1e3d580336e9414ae2635bb935"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrap all content, repositioning all children as needed.  <a href="#a0e6d5e1e3d580336e9414ae2635bb935">More...</a><br /></td></tr>
<tr class="separator:a0e6d5e1e3d580336e9414ae2635bb935"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a629d74554a37537366fdcd3ab15f1180"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a629d74554a37537366fdcd3ab15f1180">itemSize</a> = 100</td></tr>
<tr class="memdesc:a629d74554a37537366fdcd3ab15f1180"><td class="mdescLeft">&#160;</td><td class="mdescRight">Width or height of the child items for positioning purposes.  <a href="#a629d74554a37537366fdcd3ab15f1180">More...</a><br /></td></tr>
<tr class="separator:a629d74554a37537366fdcd3ab15f1180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1baf7f172e07d75eaedf3cf04ee7c334"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a1baf7f172e07d75eaedf3cf04ee7c334">cullContent</a> = true</td></tr>
<tr class="memdesc:a1baf7f172e07d75eaedf3cf04ee7c334"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the content will be automatically culled. Enabling this will improve performance in scroll views that contain a lot of items.  <a href="#a1baf7f172e07d75eaedf3cf04ee7c334">More...</a><br /></td></tr>
<tr class="separator:a1baf7f172e07d75eaedf3cf04ee7c334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5a388123cda18e51b3606c0fe389b6a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#ab5a388123cda18e51b3606c0fe389b6a">minIndex</a> = 0</td></tr>
<tr class="memdesc:ab5a388123cda18e51b3606c0fe389b6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum allowed index for items. If "min" is equal to "max" then there is no limit. For vertical scroll views indices increment with the Y position (towards top of the screen).  <a href="#ab5a388123cda18e51b3606c0fe389b6a">More...</a><br /></td></tr>
<tr class="separator:ab5a388123cda18e51b3606c0fe389b6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c5da7906325f5109ac9e5a6cd861cd1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a3c5da7906325f5109ac9e5a6cd861cd1">maxIndex</a> = 0</td></tr>
<tr class="memdesc:a3c5da7906325f5109ac9e5a6cd861cd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum allowed index for items. If "min" is equal to "max" then there is no limit. For vertical scroll views indices increment with the Y position (towards top of the screen).  <a href="#a3c5da7906325f5109ac9e5a6cd861cd1">More...</a><br /></td></tr>
<tr class="separator:a3c5da7906325f5109ac9e5a6cd861cd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7842b783f72178e9349ebbf8df78bdd7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a7842b783f72178e9349ebbf8df78bdd7">hideInactive</a> = false</td></tr>
<tr class="memdesc:a7842b783f72178e9349ebbf8df78bdd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether hidden game objects will be ignored for the purpose of calculating bounds.  <a href="#a7842b783f72178e9349ebbf8df78bdd7">More...</a><br /></td></tr>
<tr class="separator:a7842b783f72178e9349ebbf8df78bdd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8d7bc74b6c702cc8e8fba502195dc13"><td class="memItemLeft" align="right" valign="top">OnInitializeItem&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#ac8d7bc74b6c702cc8e8fba502195dc13">onInitializeItem</a></td></tr>
<tr class="memdesc:ac8d7bc74b6c702cc8e8fba502195dc13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback that will be called every time an item needs to have its content updated. The 'wrapIndex' is the index within the child list, and 'realIndex' is the index using position logic.  <a href="#ac8d7bc74b6c702cc8e8fba502195dc13">More...</a><br /></td></tr>
<tr class="separator:ac8d7bc74b6c702cc8e8fba502195dc13"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6509467fd9d2000b4eadb7d7e9ceb1c7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a6509467fd9d2000b4eadb7d7e9ceb1c7">Start</a> ()</td></tr>
<tr class="memdesc:a6509467fd9d2000b4eadb7d7e9ceb1c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize everything and register a callback with the <a class="el" href="class_u_i_panel.html" title="UI Panel is responsible for collecting, sorting and updating widgets in addition to generating widget...">UIPanel</a> to be notified when the clipping region moves.  <a href="#a6509467fd9d2000b4eadb7d7e9ceb1c7">More...</a><br /></td></tr>
<tr class="separator:a6509467fd9d2000b4eadb7d7e9ceb1c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac766c90749c56a57d98891831bb75b45"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#ac766c90749c56a57d98891831bb75b45">OnMove</a> (<a class="el" href="class_u_i_panel.html">UIPanel</a> panel)</td></tr>
<tr class="memdesc:ac766c90749c56a57d98891831bb75b45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback triggered by the <a class="el" href="class_u_i_panel.html" title="UI Panel is responsible for collecting, sorting and updating widgets in addition to generating widget...">UIPanel</a> when its clipping region moves (for example when it's being scrolled).  <a href="#ac766c90749c56a57d98891831bb75b45">More...</a><br /></td></tr>
<tr class="separator:ac766c90749c56a57d98891831bb75b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa07406facb7a0d58f1fe2c72a0f0d3b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#aaa07406facb7a0d58f1fe2c72a0f0d3b">CacheScrollView</a> ()</td></tr>
<tr class="memdesc:aaa07406facb7a0d58f1fe2c72a0f0d3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache the scroll view and return 'false' if the scroll view is not found.  <a href="#aaa07406facb7a0d58f1fe2c72a0f0d3b">More...</a><br /></td></tr>
<tr class="separator:aaa07406facb7a0d58f1fe2c72a0f0d3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17091cfd58217659c1e032b69f9c0ffe"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#a17091cfd58217659c1e032b69f9c0ffe">ResetChildPositions</a> ()</td></tr>
<tr class="memdesc:a17091cfd58217659c1e032b69f9c0ffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function that resets the position of all the children.  <a href="#a17091cfd58217659c1e032b69f9c0ffe">More...</a><br /></td></tr>
<tr class="separator:a17091cfd58217659c1e032b69f9c0ffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace9835f4e7619d09c014d5df12683206"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_wrap_content.html#ace9835f4e7619d09c014d5df12683206">UpdateItem</a> (Transform item, int index)</td></tr>
<tr class="memdesc:ace9835f4e7619d09c014d5df12683206"><td class="mdescLeft">&#160;</td><td class="mdescRight">Want to update the content of items as they are scrolled? Override this function.  <a href="#ace9835f4e7619d09c014d5df12683206">More...</a><br /></td></tr>
<tr class="separator:ace9835f4e7619d09c014d5df12683206"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a91d0c529dc8ee603440c68d80367b86a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91d0c529dc8ee603440c68d80367b86a"></a>
Transform&#160;</td><td class="memItemRight" valign="bottom"><b>mTrans</b></td></tr>
<tr class="separator:a91d0c529dc8ee603440c68d80367b86a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94aebeb9fdd4e5f8e489aa0bf25c52d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a94aebeb9fdd4e5f8e489aa0bf25c52d9"></a>
<a class="el" href="class_u_i_panel.html">UIPanel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mPanel</b></td></tr>
<tr class="separator:a94aebeb9fdd4e5f8e489aa0bf25c52d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa725cd44f2b5019c7fc4a1251c7bb4aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa725cd44f2b5019c7fc4a1251c7bb4aa"></a>
<a class="el" href="class_u_i_scroll_view.html">UIScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mScroll</b></td></tr>
<tr class="separator:aa725cd44f2b5019c7fc4a1251c7bb4aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cd8fab0de3d476cf942cb901366d31b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4cd8fab0de3d476cf942cb901366d31b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mHorizontal</b> = false</td></tr>
<tr class="separator:a4cd8fab0de3d476cf942cb901366d31b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43b25a2e2fe7a801c0c9e8b5e670aaea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43b25a2e2fe7a801c0c9e8b5e670aaea"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mFirstTime</b> = true</td></tr>
<tr class="separator:a43b25a2e2fe7a801c0c9e8b5e670aaea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5913d898e5c7dff82628383d4fe1681"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5913d898e5c7dff82628383d4fe1681"></a>
List&lt; Transform &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mChildren</b> = new List&lt;Transform&gt;()</td></tr>
<tr class="separator:ac5913d898e5c7dff82628383d4fe1681"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This script makes it possible for a scroll view to wrap its content, creating endless scroll views. Usage: simply attach this script underneath your scroll view where you would normally place a <a class="el" href="class_u_i_grid.html" title="All children added to the game object with this script will be repositioned to be on a grid of specif...">UIGrid</a>: </p>
<ul>
<li>Scroll View |- UIWrappedContent |&ndash; Item 1 |&ndash; Item 2 |&ndash; Item 3 </li>
</ul>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aaa07406facb7a0d58f1fe2c72a0f0d3b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIWrapContent.CacheScrollView </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cache the scroll view and return 'false' if the scroll view is not found. </p>

</div>
</div>
<a class="anchor" id="ac766c90749c56a57d98891831bb75b45"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.OnMove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_u_i_panel.html">UIPanel</a>&#160;</td>
          <td class="paramname"><em>panel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Callback triggered by the <a class="el" href="class_u_i_panel.html" title="UI Panel is responsible for collecting, sorting and updating widgets in addition to generating widget...">UIPanel</a> when its clipping region moves (for example when it's being scrolled). </p>

</div>
</div>
<a class="anchor" id="a17091cfd58217659c1e032b69f9c0ffe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.ResetChildPositions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Helper function that resets the position of all the children. </p>

</div>
</div>
<a class="anchor" id="a1e58c60ad2dd89ecb515125449f91453"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.SortAlphabetically </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Immediately reposition all children, sorting them alphabetically. </p>

</div>
</div>
<a class="anchor" id="acb45af70f5b7679b61a966a18ea12d7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.SortBasedOnScrollMovement </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Immediately reposition all children. </p>

</div>
</div>
<a class="anchor" id="a6509467fd9d2000b4eadb7d7e9ceb1c7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialize everything and register a callback with the <a class="el" href="class_u_i_panel.html" title="UI Panel is responsible for collecting, sorting and updating widgets in addition to generating widget...">UIPanel</a> to be notified when the clipping region moves. </p>

</div>
</div>
<a class="anchor" id="ace9835f4e7619d09c014d5df12683206"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.UpdateItem </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Want to update the content of items as they are scrolled? Override this function. </p>

</div>
</div>
<a class="anchor" id="a0e6d5e1e3d580336e9414ae2635bb935"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIWrapContent.WrapContent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Wrap all content, repositioning all children as needed. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a1baf7f172e07d75eaedf3cf04ee7c334"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIWrapContent.cullContent = true</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the content will be automatically culled. Enabling this will improve performance in scroll views that contain a lot of items. </p>

</div>
</div>
<a class="anchor" id="a7842b783f72178e9349ebbf8df78bdd7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIWrapContent.hideInactive = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether hidden game objects will be ignored for the purpose of calculating bounds. </p>

</div>
</div>
<a class="anchor" id="a629d74554a37537366fdcd3ab15f1180"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UIWrapContent.itemSize = 100</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Width or height of the child items for positioning purposes. </p>

</div>
</div>
<a class="anchor" id="a3c5da7906325f5109ac9e5a6cd861cd1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UIWrapContent.maxIndex = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum allowed index for items. If "min" is equal to "max" then there is no limit. For vertical scroll views indices increment with the Y position (towards top of the screen). </p>

</div>
</div>
<a class="anchor" id="ab5a388123cda18e51b3606c0fe389b6a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UIWrapContent.minIndex = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Minimum allowed index for items. If "min" is equal to "max" then there is no limit. For vertical scroll views indices increment with the Y position (towards top of the screen). </p>

</div>
</div>
<a class="anchor" id="ac8d7bc74b6c702cc8e8fba502195dc13"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OnInitializeItem UIWrapContent.onInitializeItem</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback that will be called every time an item needs to have its content updated. The 'wrapIndex' is the index within the child list, and 'realIndex' is the index using position logic. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/Interaction/UIWrapContent.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_wrap_content.html">UIWrapContent</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:28 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
